﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Linq;
using System.Runtime.InteropServices;
using System.ServiceProcess;
using System.Text;
using System.Threading.Tasks;

namespace ClientService
{
    [ComVisible(false)]
    public partial class ClientProtectService : ServiceBase
    {
        private HideTaskmgrList HideList = new HideTaskmgrList();

        public ClientProtectService()
        {
            InitializeComponent();
        }

        protected override void OnStart(string[] args)
        {
            HideList.ProcessName = "ClientUI.exe";
            HideList.Start();
        }

        protected override void OnStop()
        {
            HideList.Stop();
        }
    }
}
